import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

import './assets/font_icons/iconfont.css'
import './assets/scss/style.scss'
import router from './router'

import VueAwesomeSwiper from 'vue-awesome-swiper'
// // import style
import 'vue-awesome-swiper/node_modules/swiper/dist/css/swiper.css'

Vue.use(VueAwesomeSwiper, /* { default options with global component } */)

import Card from './components/Card.vue'
Vue.component('m-card',Card)
import ListCard from './components/ListCard.vue'
Vue.component('m-list-card',ListCard)

import axios from 'axios'
Vue.prototype.$http = axios.create({
  baseURL: process.env.VUE_API_URL || '/web/api',
  //baseURL: "http://localhost:3000/web/api"
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
